package org.feiye.studyday07;

import java.util.Scanner;

public class ArrMin {

	public static void main(String[] args) {
		// 求最小值
		double[] arrs = new double[5];
		Scanner sc = new Scanner(System.in);
		for (int i = 0; i < arrs.length; i++) {
			System.out.println("请输入第" + (i + 1) + "个值：");
			arrs[i] = sc.nextDouble();
		}
		double min = arrs[0];
		for (int i = 0; i < arrs.length; i++) {
			min = min > arrs[i] ? arrs[i] : min;
		}
		System.out.println(min);
	}

}
